﻿// Decompiled with JetBrains decompiler
// Type: TaleWorlds.CampaignSystem.MapNotificationTypes.HeirComeOfAgeMapNotification
// Assembly: TaleWorlds.CampaignSystem, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E85F8C15-4DF6-4E9C-A58A-29177E40D07A
// Assembly location: D:\steam\steamapps\common\Mount & Blade II Bannerlord\bin\Win64_Shipping_Client\TaleWorlds.CampaignSystem.dll

using System.Collections.Generic;
using TaleWorlds.Core;
using TaleWorlds.Localization;
using TaleWorlds.SaveSystem;

#nullable disable
namespace TaleWorlds.CampaignSystem.MapNotificationTypes
{
  public class HeirComeOfAgeMapNotification : InformationData
  {
    internal static void AutoGeneratedStaticCollectObjectsHeirComeOfAgeMapNotification(
      object o,
      List<object> collectedObjects)
    {
      ((InformationData) o).AutoGeneratedInstanceCollectObjects(collectedObjects);
    }

    protected override void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)
    {
      base.AutoGeneratedInstanceCollectObjects(collectedObjects);
      collectedObjects.Add((object) this.ComeOfAgeHero);
      collectedObjects.Add((object) this.MentorHero);
      CampaignTime.AutoGeneratedStaticCollectObjectsCampaignTime((object) this.CreationTime, collectedObjects);
    }

    internal static object AutoGeneratedGetMemberValueComeOfAgeHero(object o)
    {
      return (object) ((HeirComeOfAgeMapNotification) o).ComeOfAgeHero;
    }

    internal static object AutoGeneratedGetMemberValueMentorHero(object o)
    {
      return (object) ((HeirComeOfAgeMapNotification) o).MentorHero;
    }

    internal static object AutoGeneratedGetMemberValueCreationTime(object o)
    {
      return (object) ((HeirComeOfAgeMapNotification) o).CreationTime;
    }

    public override TextObject TitleText => new TextObject("{=5jAH0VV7}Heir Come of Age");

    public override string SoundEventPath => string.Empty;

    [SaveableProperty(1)]
    public Hero ComeOfAgeHero { get; private set; }

    [SaveableProperty(2)]
    public Hero MentorHero { get; private set; }

    [SaveableProperty(3)]
    public CampaignTime CreationTime { get; private set; }

    public HeirComeOfAgeMapNotification(
      Hero comeOfAgeHero,
      Hero mentorHero,
      TextObject descriptionText,
      CampaignTime creationTime)
      : base(descriptionText)
    {
      this.ComeOfAgeHero = comeOfAgeHero;
      this.MentorHero = mentorHero;
      this.CreationTime = creationTime;
    }
  }
}
